<!DOCTYPE html>
<html>
<head>
    <title>鼎捷分销</title>
    <script>
        var pageConfig = {
            jss: ["pc/index/message"]
        };

        // var beginTime = 0;
        // var differTime = 0;
        // window.onunload = function (){
        //     differTime = new Date().getTime() - beginTime;
        //     if(differTime <= 5) {
        //         //alert("浏览器关闭")
        //         app.ajax({
        //             xurl: 'logout'
        //         });
        //
        //     }else{
        //         //alert("浏览器刷新")
        //     }
        //
        // };
        //
        // window.onbeforeunload = function (){
        //     beginTime = new Date().getTime();
        // };
    </script>
    @@include("/pc/crm/common/_head.html"){}@@
    <link rel="stylesheet" href="css/pc/index.css" media="all">
</head>
<body class="layui-layout-body">

<div id="E4j_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect data-ripple="ripple">
                    <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" layadmin-event="refresh" title="刷新" data-ripple="ripple">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>

            <!-- 页面标签 -->

            <div class="head_pagetabs">
                <div class="lay_head_pagetabs">
                    <div class="layadmin-pagetabs lay_pagetabs" id="LAY_app_tabs">
                        <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
                        <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
                        <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                            <ul class="layui-tab-title" id="LAY_app_tabsheader">
                                <li lay-id="home/console.html" lay-attr="home/console.html" class="layui-this"><i
                                        class="layui-icon layui-icon-home"></i></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <ul class="layui-nav layui-layout-right">

                <li class="layui-nav-item layui-hide-xs" lay-filter="layadmin-pagetabs-nav">
                    <div class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" class="layui-icon layui-icon-notice">{{count}}</a>
                        <dl class="layui-nav-child layui-anim-fadein" >
                            <dd><a lay-href="crm/gwai880">查看更多</a></dd>
                            <dd v-for="item in list"><a layadmin-event="detail" :lay-data="item.GWDI001">{{item.GWDI005}}</a></dd>
                        </dl>
                    </div>
                </li>

                <li class="layui-icon layadmin-tabs-control">
                    <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                        <li class="layui-nav-item" lay-unselect>
                            <a href="javascript:;" class="layui-icon layui-icon-down"></a>
                            <dl class="layui-nav-child layui-anim-fadein">
                                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                            </dl>
                        </li>
                    </ul>
                </li>
                <!--<li class="layui-nav-item" lay-unselect>-->
                <!--<a href="javascript:;">-->
                <!--<cite>E4J</cite>-->
                <!--</a>-->
                <!--<dl class="layui-nav-child">-->
                <!--<dd><a lay-href="set/user/info.html">基本资料</a></dd>-->
                <!--<dd><a lay-href="set/user/password.html">修改密码</a></dd>-->
                <!--<hr>-->
                <!--<dd layadmin-event="logout" style="text-align: center;"><a>退出</a></dd>-->
                <!--</dl>-->
                <!--</li>-->

                <li class="layui-nav-item layui-hide-xs" lay-filter="layadmin-pagetabs-nav">
                    <div class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" class="layui-icon layui-icon-more-vertical"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <!--<dd>-->
                            <!--<a href="javascript:;" layadmin-event="theme">-->
                            <!--<i class="layui-icon layui-icon-theme"></i>-->
                            <!--</a>-->
                            <!--</dd>-->
                            <dd>
                                <a layadmin-event="info">基本资料</a>
                            </dd>
                            <dd>
                                <a layadmin-event="password">修改密码</a>
                            </dd>
                            <dd>
                                <a layadmin-event="theme">主题设置</a>
                            </dd>
                            <dd>
                                <a layadmin-event="logout">退出</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" layadmin-event="note">
                                    <i class="layui-icon layui-icon-note"></i>
                                </a>
                                <a href="javascript:;" layadmin-event="fullscreen">
                                    <i class="layui-icon layui-icon-screen-full"></i>
                                </a>
                            </dd>
                        </dl>
                    </div>
                </li>
            </ul>
        </div>

        <!-- 侧边菜单 -->
        <div class="layui-side layui-side-menu">
            <div id="E4j_left" class="layui-side-scroll">
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <div class="layui-inline" style="margin-top: 50px;">
                            <div class="layui-input-inline">
                                <select id="menus_select" class="layui-select" name="menusData" lay-filter="menusList" lay-search="">
                                </select>
                            </div>
                        </div>
                    </div>
                </form>
                @@var user=shiro.getUser();@@
                <div class="layui-logo">
                    <span>分销&nbsp;[${user.NAME}]</span>
                </div>
                <!--<div class="select" style="margin-top: 100px">
                    <select name="city" lay-verify="" lay-search style="width: 100%;">
                        <option value="010">layer</option>
                        <option value="021">form</option>
                        <option value="0571" selected>layim</option>
                    </select>
                </div>-->

                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu"
                    lay-filter="layadmin-system-side-menu">
                    <li data-name="home" class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;" lay-href="home/console.html" lay-tips="主页" lay-direction="2">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>主页</cite>
                        </a>
                    </li>
                    <template v-for="item in menus">
                        <li data-name="component" class="layui-nav-item">
                            <a href="javascript:;" :lay-tips="item.p.NAME" lay-direction="2">
                                <i class="layui-icon layui-icon-component"></i>
                                <cite>{{item.p.NAME}}</cite>
                            </a>
                            <dl v-for="c in item.c" class="layui-nav-child">
                                <dd data-name="grid">
                                    <a :lay-href="c.URL">{{c.NAME}}</a>
                                </dd>
                            </dl>
                        </li>
                    </template>
                    <!--<tpl-menu :model="menus"></tpl-menu>-->
                </ul>
            </div>
        </div>

        <!-- 主体内容 -->
        <div class="layui-body" id="E4j_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe id="page_admin" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>
</body>
</html>


